package com.qinggeng.project.api.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 吴鹏飞
 * @date 2020/11/12
 */
@Data
public class AssistRecordDto {

    //助力记录id
    @ApiModelProperty(name = "助力记录id",required = true)
    private Long id;
    //商品ID
    @ApiModelProperty(name = "商品ID",required = true)
    private Long goodsId;
    //商品主类id
    @ApiModelProperty(name = "商品主类id",required = true)
    private Long mainCategory;
    //超时时间
    @ApiModelProperty(name = "超时时间日期格式",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    @ApiModelProperty(name = "超时时间毫秒格式",required = true)
    private Long outTimeMs;
    //商品名称
    @ApiModelProperty(name = "商品名称",required = true)
    private String goodsName;
    //商品sku属性
    @ApiModelProperty(name = "商品sku属性",required = true)
    private String attributes;
    //商品主图
    @ApiModelProperty(name = "商品主图",required = true)
    private String goods_img;
    //商品价格
    @ApiModelProperty(name = "商品价格",required = true)
    private BigDecimal goodsPrice;
    //剩余次数
    @ApiModelProperty(name = "剩余次数",required = true)
    private Integer remainCount;
    //助力状态
    @ApiModelProperty(name = "助力状态1=成功 0=失败 2=进行中",required = true)
    private String assistSuccess;

    @ApiModelProperty(name = "跳转链接",required = true)
    private String url;

}
